#include "imMaths.h"

//
// Maths constants
//

template<> const float Maths<float>::EPSILON = FLT_EPSILON;
template<> const float Maths<float>::MAX = FLT_MAX;
template<> const float Maths<float>::PI = acos(-1.0f);
template<> const float Maths<float>::TWO_PI = Maths<float>::PI * 2.0f;
template<> const float Maths<float>::HALF_PI = Maths<float>::PI * 0.5f;
template<> const float Maths<float>::INV_PI = 1.0f / Maths<float>::PI;
template<> const float Maths<float>::INV_TWO_PI = 1.0f / Maths<float>::TWO_PI;
template<> const float Maths<float>::DEG_TO_RAD = Maths<float>::PI / 180.0f;
template<> const float Maths<float>::RAD_TO_DEG = 180.0f / Maths<float>::PI;

template<> const double Maths<double>::EPSILON = DBL_EPSILON;
template<> const double Maths<double>::MAX = DBL_MAX;
template<> const double Maths<double>::PI = acos(-1.0);
template<> const double Maths<double>::TWO_PI = Maths<double>::PI * 2.0;
template<> const double Maths<double>::HALF_PI = Maths<double>::PI * 0.5;
template<> const double Maths<double>::INV_PI = 1.0 / Maths<double>::PI;
template<> const double Maths<double>::INV_TWO_PI = 1.0 / Maths<double>::TWO_PI;
template<> const double Maths<double>::DEG_TO_RAD = Maths<double>::PI / 180.0;
template<> const double Maths<double>::RAD_TO_DEG = 180.0 / Maths<double>::PI;